(define-module (emacs magit-annex)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix download))

(define-public emacs-magit-annex
  (package
    (name "emacs-magit-annex")
    (version "1.7.1")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "https://stable.melpa.org/packages/magit-annex-"
             version
             ".el"))
       (sha256
        (base32
         "1nxkywcjariy5v8abc49xs8fvycagfry7kqybxz61gh8mk6kcysf"))))
    (build-system emacs-build-system)
    (propagated-inputs
     `(("emacs-magit" ,emacs-magit)
       ("emacs-magit-popup" ,emacs-magit-popup)))
    (home-page "https://github.com/magit/magit-annex")
    (synopsis "Control git-annex from Magit")
    (description
     "Magit-annex adds a few git-annex operations to the Magit interface.
Annex commands are available under the annex popup menu, which is
bound to at.  This key was chosen as a leading key mostly to be
consistent with John Wiegley's git-annex.el (which provides a Dired
interface to git-annex).")
    (license #f)))
